package com.shop2cn.iapi.promotion.serivce;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*获取商品的有效促销活动Call
*FreeMaker Template自动生成代码
*/
public class getProductsPromotionValueCall extends YmatouBaseCall{
	private static String opurl ="api/promotion/getProductsPromotionValue";
	
	public getProductsPromotionValueCall() {
		super(EnvSetup.getSystemUrl("promotion_shop2cn_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	public String getCode() {
		return getString("Code");
	}
	public String getMsg() {
		return getString("Msg");
	}
}